package com.yunbao.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 供货商
 * </p>
 *
 * @author 安能
 * @since 2019-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Merchant implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 用户名,电子邮箱
     */
    private String userName;

    /**
     * 密码
     */
    private String password;

    /**
     * 性别{1:男,0:女}
     */
    private Integer sex;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 角色名
     */
    private String roleName;

    /**
     * 身份{0:老板,1:员工}
     */
    private Integer identity;

    /**
     * 员工上级id,如果是老板绑定自己id
     */
    private Integer merchantId;

    /**
     * 状态{0:禁用,1:可用}
     */
    private Integer status;

    /**
     * 逻辑删除{0:删除,1:未删除}
     */
    @TableLogic
    private Integer deleted;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
